import request from '@/utils/request'

/*
 * @description 修改密码
 */
export function passwordUpdate(params) {
  const data = {
    status: 0,
    password: params.password,
    passwordNew: params.passwordNew,
    id: params.id,
    userName: params.userName
  }
  return request({
    url: `updataUser?params=${JSON.stringify(data)}`,
    method: 'post'
  })
}

/*
 * @description 修改密码
 */
export function addUser(params) {
  const data = {
    userName: params.userName,
    password: params.password
  }
  return request({
    url: `addUser?params=${JSON.stringify(data)}`,
    method: 'post'
  })
}
